package com.ruoyi.erecord.region.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 区域视图对象 t_region
 *
 * @author cc
 * @date 2023-04-19
 */
@Data
@ExcelIgnoreUnannotated
public class RegionVo {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private String id;

    //区域编码
    @ExcelProperty(value = "区域编码")
    private String code;
    /**
     * 父级id
     */
    //    @ExcelProperty(value = "父级id")
    private String parentId;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String title;

    /**
     * 父级名称
     */
    @ExcelProperty(value = "父级名称")
    private String parentTitle;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 区域级别
     */
    @ExcelProperty(value = "区域级别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "region_grade")
    private Integer grade;
    //祖级列表
    private String ancestors;
    @ExcelProperty(value = "创建日期")
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private String createBy;
    /**
     * 更新日期
     */
    //@ExcelProperty(value = "更新日期")
    private Date updateTime;

    /**
     * 更新人
     */
    //@ExcelProperty(value = "更新人")
    private String updateBy;
}
